﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="add_item.aspx.cs" Inherits="admin_add_item" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>添加产品</title>
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="../css/StyleSheet.css" rel="Stylesheet" type="text/css" />
</head>
<body style="margin-top:0px; margin-bottom: 0px; text-align:center">
<form id="form1" style="border:0px; margin:0px; padding:0px;" runat="server">
<div style="text-align:center; margin-top:10px;">
<table border="1" cellspacing="0" class="css" style="width: 560px; text-align:left;" bordercolor="#adbdce" bordercolordark="#d4d6e0" bordercolorlight="#000099">
  <tr>
    <td height="40" colspan="2" style="background-color: #d4d6e0">
        <span style="font-size:14px; font-weight:bold; color:Red; text-align:left;">在添加产品之前请先准备好以下信息:</span><br />
        <span style="font-size:12px; color:Red; text-align:left;">标题、简介、返利链接、详情、产品类别、是否为海外产品、是否为推荐产品、来源</span><br />
        <div align="center" style="font-weight:bold; text-align:center; font-size:16px;">添加产品</div><br />
        <div align="center" style="color:#FF3300; font-size:12px;">(*为必填信息！)</div>
    </td>
  </tr>
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;">*</span>标题：</td>
    <td>
        &nbsp;<asp:TextBox ID="producttitle" runat="server" Width="380px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="producttitle"
                Display="Dynamic" ErrorMessage="*标题不能为空"></asp:RequiredFieldValidator>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;"></span>价格：</td>
    <td>
        &nbsp;<asp:TextBox ID="productprice" runat="server" Width="380px"></asp:TextBox>
    </td>
  </tr>

  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;">*</span>简介：</td>
    <td>
        &nbsp;<asp:TextBox ID="introduction" Width="380px" Height="50px" TextMode="MultiLine" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="introduction"
                Display="Dynamic" ErrorMessage="*简介不能为空"></asp:RequiredFieldValidator>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;"></span>简介2：</td>
    <td>
        &nbsp;<asp:TextBox ID="introduction2" Width="380px" Height="50px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;"></span>简介3：</td>
    <td>
        &nbsp;<asp:TextBox ID="introduction3" Width="380px" Height="50px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;"></span>简介4：</td>
    <td>
        &nbsp;<asp:TextBox ID="introduction4" Width="380px" Height="50px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;"></span>简介5：</td>
    <td>
        &nbsp;<asp:TextBox ID="introduction5" Width="380px" Height="50px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;"></span>简介6：</td>
    <td>
        &nbsp;<asp:TextBox ID="introduction6" Width="380px" Height="50px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;"></span>简介7：</td>
    <td>
        &nbsp;<asp:TextBox ID="introduction7" Width="380px" Height="50px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;"></span>简介8：</td>
    <td>
        &nbsp;<asp:TextBox ID="introduction8" Width="380px" Height="50px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;"></span>简介9：</td>
    <td>
        &nbsp;<asp:TextBox ID="introduction9" Width="380px" Height="50px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;"></span>简介10：</td>
    <td>
        &nbsp;<asp:TextBox ID="introduction10" Width="380px" Height="50px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;">*</span>返利链接：</td>
    <td>
        &nbsp;<asp:TextBox ID="producturl" runat="server" Width="380px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="producturl"
                Display="Dynamic" ErrorMessage="*返利链接不能为空"></asp:RequiredFieldValidator>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;">*</span>产品类别：</td>
    <td>
        &nbsp;<asp:DropDownList ID="productkind" runat="server"></asp:DropDownList>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="productkind"
                Display="Dynamic" ErrorMessage="*产品类别不能为空"></asp:RequiredFieldValidator>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;">*</span>产品来源：</td>
    <td>
        &nbsp;<asp:DropDownList ID="productsource" runat="server"></asp:DropDownList>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="productsource"
                Display="Dynamic" ErrorMessage="*产品来源不能为空"></asp:RequiredFieldValidator>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;">*</span>是否为海外产品：</td>
    <td>
        &nbsp;<asp:TextBox ID="abroadornot" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="abroadornot"
                Display="Dynamic" ErrorMessage="*是否为海外产品不能为空"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="abroadornot" Display="Dynamic" 
                                 ErrorMessage="只能输入y或者n" ValidationExpression="y|n"></asp:RegularExpressionValidator>
        
        <br />                       
        <span style="color:Red; font-size:9px;">（请输入y或者n）</span>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;">*</span>是否为推荐产品：</td>
    <td>
        &nbsp;<asp:TextBox ID="recommendornot" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="recommendornot"
                Display="Dynamic" ErrorMessage="*是否为推荐产品不能为空"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="recommendornot" Display="Dynamic" 
                                 ErrorMessage="只能输入y或者n" ValidationExpression="y|n"></asp:RegularExpressionValidator>
        
        <br />                       
        <span style="color:Red; font-size:9px;">（请输入y或者n）</span>
    </td>
  </tr>
  
  <%--<tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;">*</span>上传图片：</td>
    <td>&nbsp;<asp:FileUpload ID="fileUp" runat="server" />
    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="fileUp"
                Display="Dynamic" ErrorMessage="*上传图片不能为空"></asp:RequiredFieldValidator>
        <br />                       
        <span style="color:Red; font-size:9px;">（上传图片大小不能大于2M）</span>
    </td>
  </tr>
  --%>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;">*</span>图片：</td>
    <td>
        &nbsp;<asp:TextBox ID="picaddr" runat="server" Width="380px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="picaddr"
                Display="Dynamic" ErrorMessage="*图片不能为空"></asp:RequiredFieldValidator>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">
        <span style="color:#FF3300; font-weight:bold; font-size:14px;"></span>详情：</td>
    <td>
        &nbsp;<asp:TextBox ID="detail" Width="380px" Height="80px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">图片链接：</td>
    <td>
        &nbsp;<asp:TextBox ID="detailurl" runat="server" Width="380px"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">详情2：</td>
    <td>
        &nbsp;<asp:TextBox ID="detail2" Width="380px" Height="80px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">图片链接2：</td>
    <td>
        &nbsp;<asp:TextBox ID="detailurl2" runat="server" Width="380px"></asp:TextBox>
    </td>
  </tr>

  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">详情3：</td>
    <td>
        &nbsp;<asp:TextBox ID="detail3" Width="380px" Height="80px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">图片链接3：</td>
    <td>
        &nbsp;<asp:TextBox ID="detailurl3" runat="server" Width="380px"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">详情4：</td>
    <td>
        &nbsp;<asp:TextBox ID="detail4" Width="380px" Height="80px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">图片链接4：</td>
    <td>
        &nbsp;<asp:TextBox ID="detailurl4" runat="server" Width="380px"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">详情5：</td>
    <td>
        &nbsp;<asp:TextBox ID="detail5" Width="380px" Height="80px" TextMode="MultiLine" runat="server"></asp:TextBox>
    </td>
  </tr>
  
  <tr>
    <td align="right" style="width: 115px; height: 28px; background-color: #d4d6e0;">图片链接5：</td>
    <td>
        &nbsp;<asp:TextBox ID="detailurl5" runat="server" Width="380px"></asp:TextBox>
    </td>
  </tr>
  
  <tr style="text-align:center;">
    <td colspan="2" style="background-color: #d4d6e0; text-align:center;">
        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添加" CssClass="blueButtonCss3" />&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button2" runat="server" Text="重新填写" OnClick="Button2_Click" CssClass="blueButtonCss3" CausesValidation="False" />&nbsp;&nbsp;&nbsp;&nbsp;
        <br />
    </td>
  </tr>
</table>
</div>
</form>
</body>
</html>
